﻿#include "FIR.h"
#ifdef USEJNI
#include "FIR_JNI.h"
#include "util/JNIUtil.h"
using namespace yzrilyzr_dsp;
using namespace yzrilyzr_util;
JNIEXPORT jlong JNICALL Java_yzrilyzr_dsp_FIR_constructor(JNIEnv* env, jobject, jdoubleArray coeff) {
	DoubleArray* C = jDoubleArray2DoubleWithLength(env, coeff);
	FIR* ptr = new FIR(C);
	return reinterpret_cast<jlong>(ptr);
}
#endif